from rest_framework.viewsets import GenericViewSet
from rest_framework.mixins import ListModelMixin, CreateModelMixin, UpdateModelMixin, DestroyModelMixin

from apps.models import LoginLog
from apps.serializers.UserSerializer import LoginLogSerializer
from apps.utils.common_mixin import APIListModelMixin


class LoginLogView(GenericViewSet, APIListModelMixin, CreateModelMixin, UpdateModelMixin, DestroyModelMixin):
    queryset = LoginLog.objects.all()
    serializer_class = LoginLogSerializer
